package org.csu.mypetstore.persistence;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.csu.mypetstore.domain.Account;
import org.springframework.stereotype.Repository;


@Repository
@Mapper
public interface    AccountMapper {

    Account getAccountByUsername(String username);
    Account getAccountByUsernameAndPassword(Account account);
    void insertAccount(Account account);
    void insertProfile(Account account);

    void insertSignon(Account account);
    void updateAccount(Account account);
    void updateProfile(Account account);
    void updateSignon(Account account);

    int SearchAccountCount(String userId);
    Account selectOne(String username);
    void insertSignon(String username, String password);
    void deleteAccount(String username);

}
